package com.rt.system.mapper;

import java.util.List;
import com.rt.system.domain.RtDifficulty;

/**
 * 难易度配置Mapper接口
 * 
 * @author Yg
 * @date 2022-04-13
 */
public interface RtDifficultyMapper 
{
    /**
     * 查询难易度配置
     * 
     * @param id 难易度配置主键
     * @return 难易度配置
     */
    public RtDifficulty selectRtDifficultyById(Long id);

    /**
     * 查询难易度配置列表
     * 
     * @param rtDifficulty 难易度配置
     * @return 难易度配置集合
     */
    public List<RtDifficulty> selectRtDifficultyList(RtDifficulty rtDifficulty);

    /**
     * 新增难易度配置
     * 
     * @param rtDifficulty 难易度配置
     * @return 结果
     */
    public int insertRtDifficulty(RtDifficulty rtDifficulty);

    /**
     * 修改难易度配置
     * 
     * @param rtDifficulty 难易度配置
     * @return 结果
     */
    public int updateRtDifficulty(RtDifficulty rtDifficulty);

    /**
     * 删除难易度配置
     * 
     * @param id 难易度配置主键
     * @return 结果
     */
    public int deleteRtDifficultyById(Long id);

    /**
     * 批量删除难易度配置
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRtDifficultyByIds(Long[] ids);

    // 查询难易度Id
    Integer selectRtDifficultyByError(Integer error);

    // 查询难易度
    String selectDifficultyById(Integer id);
}
